package Coffee.service;

import Coffee.bean.Result;
import Coffee.bean.User;

import java.util.List;

public interface UserService {
    Result insertUser(User user);
    User queryUser(String username);
    Result delUserById(String userid);
    Result updateUser(User user);
    List<User> queryAll(String username,int pageIndex,int pageSize);//查询所有
    Result login(String username,String userpwd);//登录
    void insertMoney(int money ,String username);//充值
    void queryMoneyByUsername(String username);//查询用户的余额
    void updateMoney(int money,String username);//消费-钱包操作
    void payOrder(String orderid,String username);//结算订单
    Result getCoffee(String[] list);//拿取商品
    void repay(String orderid);//退单
    int getCount(String username);
    Result daPay(String[] list,String username);//支付
    Result dorePay(String[] list,String username);//退单


}
